import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;


class Base64Codec {
  
  static encode = { target ->
    return new BASE64Encoder().encode( target.getBytes('UTF-8') )
  }
  
  static decode = { target ->
     return new BASE64Decoder().decode(target) 
  }

}
